Tamara\Wp\Plugin\Services\WCTamaraGateway D

Total Complexity 329
Dependencies 32
Dependents 3
Total lines 2,647
Lines of code 1,803
Logical lines of code 755
Comment lines 455
Methods 92
Properties 18

Methods 92

Method Rating Maintainability Complexity Lines of code
initFormFields()
D
17
10 424
tamaraCheckoutSession()
C
32 27 101
populateTamaraShippingAddress()
A
57 17 13
tamaraCancelOrder()
A
42 13 51
getCountryPaymentTypes()
A
45 11 40
captureWcOrder()
A
41 9 57
hideTamaraGatewayOnCheckout()
A
50 10 25
isCreditPrecheckPaymentTypesValid()
A
53 10 21
populateTamaraAddress()
A
53 9 20
validateRequiredFields()
A
60 9 11
onSaveSettings()
A
46 7 39
populateCreditPrecheck()
S
52 7 22
tamaraCapturePayment()
S
53 7 21
verifyApiParams()
S
52 6 24
getAvailableSupportedInstalments()
S
46 5 35
populateTamaraOrderItems()
S
48 5 33
populateTamaraRefundOrderItems()
S
48 5 30
renderTamaraPayNowOptionHtml()
S
50 5 28
renderTamaraCountryPaymentTypesHtml()
S
50 5 28
getTamaraOrderId()
S
52 5 26
getTamaraCancelId()
S
51 5 26
getTamaraCaptureId()
S
52 5 26
getAvailablePayLaterOptions()
S
54 5 20
getAvailablePayNowOptions()
S
54 5 20
populateTamaraWebhook()
S
59 5 15
registerTamaraWebhook()
S
50 4 29
getTamaraFailureUrl()
S
53 4 27
getTamaraCancelUrl()
S
53 4 27
generatePayLaterOptionContent()
S
61 5 11
generatePayNowOptionContent()
S
61 5 11
populateTamaraOrder()
S
50 4 25
deleteTamaraWebhook()
S
56 3 19
isSingleCheckoutEnabled()
S
57 3 19
init()
S
56 3 17
populateTamaraDefaultDescription()
S
57 3 16
getCurrentCountryCode()
S
64 4 9
setTamaraIconForPaymentGateway()
S
58 3 14
handleTamaraSuccessOrderReceivedPage()
S
61 3 11
createTamaraCheckoutSession()
S
58 2 16
initBaseAttributes()
S
58 2 15
getWebhookId()
S
69 3 7
initTamaraClient()
S
59 2 14
getPaymentTypeTitleMapping()
S
59 2 14
generatePayInXOptionsContent()
S
59 2 13
renderPaymentTypeDescription()
S
61 2 12
getTamaraIpnUrl()
S
63 2 12
getTamaraWebhookUrl()
S
63 2 12
getPaymentTypeMapping()
S
57 1 19
renderHelpTextsHtml()
S
57 1 19
populateTamaraMerchantUrl()
S
56 1 19
getErrorMap()
S
56 1 18
isBeautifyMerchantUrlsEnabled()
S
78 2 3
getStoreBaseCountryCode()
S
78 2 3
processRewriteRules()
S
69 2 7
populateMinLimit()
S
71 2 5
populateMaxLimit()
S
71 2 5
getPaymentTypes()
S
68 2 7
prepareDebugLogDownloadLink()
S
63 2 10
getDefaultBillingCountryCode()
S
78 2 3
getTamaraSuccessUrl()
S
68 2 7
isCartTotalValid()
S
71 2 5
initSettingAttributes()
S
60 1 13
populateTamaraConsumer()
S
60 1 13
updateTamaraCancelId()
S
75 1 4
updateTamaraOrderId()
S
75 1 4
updateTamaraCaptureId()
S
75 1 4
refreshPaymentTypeCache()
S
77 1 4
populateDefaultPayInXTitles()
S
70 1 6
convertAllowedCountryStringValue()
S
75 1 4
__construct()
S
78 1 4
updateThisSettingsToOptions()
S
66 1 10
buildTamaraClient()
S
68 1 7
processAdminOptions()
S
81 1 3
getPayByLaterTitle()
S
81 1 3
getPayByLaterTitleAr()
S
81 1 3
getPayInXTitle()
S
79 1 3
getPayInXTitleAr()
S
79 1 3
isWebhookEnabled()
S
80 1 3
isSandboxMode()
S
79 1 3
isLiveMode()
S
79 1 3
initSettings()
S
81 1 3
process_payment()
S
80 1 3
get_option_key()
S
81 1 3
populateTamaraBillingAddress()
S
76 1 4
getShippingInfo()
S
69 1 7
raiseAdminError()
S
67 1 10
raiseAdminErrorOnNonSelectedPaymentTypes()
S
73 1 6
initTamaraStatus()
S
63 1 9
getCurrencyToCountryMapping()
S
67 1 8
getCountryCodeToCountryMapping()
S
67 1 8
buildCountryPaymentTypesCacheKey()
S
71 1 6
getPublicKey()
S
82 1 3